%div
  .login-box
    .login-heading
      %h3 两步验证
    .login-body
      = form_for(resource, as: resource_name, url: session_path(resource_name), method: :post) do |f|
        - resource_params = params[resource_name].presence || params
        = f.hidden_field :remember_me, value: resource_params.fetch(:remember_me, 0)
        = f.text_field :otp_attempt, class: 'form-control', placeholder: '两步验证代码', required: true, autofocus: true
        %p.help-block.hint 如果丢失了手机，可以输入恢复代码。
        .prepend-top-20
          = f.submit "验证代码", class: "btn btn-save"
